Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: Dataset exclusion query for duplicated excluded model contributions #263

Merged
merged 2 commits into from
Dec 6, 2024

Conversation

bocklund
Copy link
Member

@bocklund bocklund commented Dec 6, 2024

If a fixed site fraction dataset has duplicated excluded model contributions, (which can happen if applying the same contribution in two different tags, for example), e.g.

{
    "components": ["CU","MG"],
    "phases": ["CUMG2"],
    "solver": {
        "mode": "manual",
        "sublattice_site_ratios": [1,2],
        "sublattice_configurations": [["CU","MG"]]
    },
    "conditions": { "P": 101325, "T": 298.15},
    "output": "SM_FORM",
    "values": [[[-4.4]]],
    "reference": "Estimated from Zhou (2007)",
    "bibtex": "zhou2007",
    "comment": "Estimated from enthalpy by s=h/3000",
    "excluded_model_contributions": ["idmix", "mag", "idmix", "mag"]
}

the current behavior of the code will result in the excluded model contribution query failing and the dataset gets filtered out.

This change resolves that behavior.

  • Needs a test to be merged

@bocklund bocklund merged commit a22a58b into master Dec 6, 2024
22 checks passed
@bocklund bocklund deleted the fix-dataset-exclusion-query branch December 6, 2024 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant